package com.atguigu.springcloud.fallback;

import com.atguigu.springcloud.service.PaymentHystrixService;
import org.springframework.stereotype.Component;

/**
 * @auther zzyy
 * @create 2020-02-05 14:12
 */
@Component
public class PaymentHystrixServiceFallBack implements PaymentHystrixService
{
    @Override
    public String paymentInfo_OK(Integer id)
    {
        return "paymentInfo_OK服务调用异常，提示来自fallback统一实现类，/(ㄒoㄒ)/~~";
    }

    @Override
    public String paymentInfo_TimeOut(Integer id)
    {
        return "paymentInfo_TimeOut服务调用异常，提示来自fallback统一实现类，/(ㄒoㄒ)/~~";
    }
}
